package com.zz.tijian.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zz.tijian.entity.Topic;
import com.zz.tijian.entity.req.AddTopicDto;
import com.zz.tijian.entity.req.TopicDto;
import com.zz.tijian.entity.res.Result;

import java.util.List;

/**
* @author 86137
* @description 针对表【topic】的数据库操作Service
* @createDate 2024-06-24 16:11:56
*/
public interface TopicService extends IService<Topic> {

    Result<List<Topic>> getTopic(TopicDto topicDto);

    Result<Topic> getTopicById(Integer topicId);

    Result<Boolean> addTopic(AddTopicDto addTopicDto);

    void refreshFromDB();
}
